package com.fingard.dsp.bank.reqrespobj.exchangerate;

import java.util.HashMap;

import com.fingard.dsp.bank.reqrespobj.ReqRespHeader;
import com.fingard.dsp.bank.reqrespobj.RetAtsBase;
import com.fingard.dsp.bank.reqrespobj.exchangerate.detail.RetAtsExchangeRateDetail;
import com.fingard.xml.XmlTextWriter;

public class RetAtsExchangeRateQry extends RetAtsBase {

    public RetAtsExchangeRateQry(ReqRespHeader p_header){
        retHeader = p_header;
        retXmlWriter = new XmlTextWriter();//用于输出返回ATS的XML报文
    }
    public void writeRetDetail(RetAtsExchangeRateDetail p_detail){
        retDetail = p_detail;
        p_detail.writeToXml(retXmlWriter);
        retXmlWriter.writeEndElement();
    }

    private RetAtsExchangeRateDetail retDetail;
    public HashMap<String,String> getRetAtsHashMap(){
        return retDetail.writeToHash();
    }
}
